import 'dart:convert' as convert;
import 'package:http/http.dart' as http;

Future<String> getZhiHuApi() async {
  String url = "https://news-at.zhihu.com/api/4/news/latest";
  var uri =
      Uri.https('news-at.zhihu.com', '/api/4/news/latest', {'q': '{http}'});
  var response = await http.get(uri);
  if (response.statusCode == 200) {
    return response.body;
  } else {
    return "error";
  }
}
